/*
  Tên:Nguyễn Văn Huy
  MSSV:11374891
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef FRTHEMSACH_H
#define FRTHEMSACH_H

#include <QDialog>
#include "mysqlconnection.h"
namespace Ui {
class frThemSach;
}

enum {

    sach_Id = 0,
    sach_Ten=1,
    sach_Gia=2,
    sach_Soluong=3,
    sach_TacgiaId=4,
    sach_TheloaiId=5
};

class frThemSach : public QDialog
{
    Q_OBJECT
    
public:
    explicit frThemSach(QWidget *parent = 0);
    ~frThemSach();
    
protected:
    void changeEvent(QEvent *e);
private:
    Ui::frThemSach *ui;
    MySqlConnection *DB;
    QSqlRelationalTableModel *tableModel;
private slots:
    void themsach();
    void capnhapsach();
    void xoasach();
    void loadcbtg();
    void loadcbtl();

};

#endif // FRTHEMSACH_H
